package com.zjy.user.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zjy.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * 实体类：用户
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class User extends BaseDomain{
    private String username;
    private String email;
    private String phone;
    /**
     * 盐值
     */
    private String salt;
    /**
     * 密码，md5加密加盐
     */
    private String password;
    /**
     * 已注册 已激活 禁用
     */
    private Integer state;
    private Integer age;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime = new Date();
    private String headImg;
    private Long logininfoId;
}
